Skip to content

seq_file.rs: Rust API for seq_file#703

Closed
adamrk wants to merge 4 commits intoRust-for-Linux:rustfrom
adamrk:seq-file
Closed

seq_file.rs: Rust API for seq_file#703
adamrk wants to merge 4 commits intoRust-for-Linux:rustfrom
adamrk:seq-file

Conversation

@adamrk
Copy link
Copy Markdown

@adamrk adamrk commented Mar 11, 2022

Add a Rust trait analagous to the seq_operations vtable and a function
for creating files in debugfs from types that implement that trait.

Signed-off-by: Adam Bratschi-Kaye ark.email@gmail.com

@adamrk
Copy link
Copy Markdown
Author

adamrk commented Mar 11, 2022

Note: this PR contains the changes from #702

@adamrk adamrk force-pushed the seq-file branch 3 times, most recently from 740a3c1 to 66b176a Compare March 12, 2022 20:21
@adamrk adamrk force-pushed the seq-file branch 6 times, most recently from 9e2e089 to 0248a73 Compare March 14, 2022 20:20
@adamrk
Copy link
Copy Markdown
Author

adamrk commented Apr 4, 2022

@wedsonaf : Let me know what else I can add to make this work for your use case.

Add a Rust API to create directories and files in `debugfs`.

Signed-off-by: Adam Bratschi-Kaye <ark.email@gmail.com>
Add a Rust trait analagous to the `seq_operations` vtable and a function
for creating files in `debugfs` from types that implement that trait.

Signed-off-by: Adam Bratschi-Kaye <ark.email@gmail.com>
Create a sample Rust driver with a miscdev that displays debug
information using a `seq_file` in `debugfs`.

Signed-off-by: Adam Bratschi-Kaye <ark.email@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant